import React from 'react';
import PropTypes from 'prop-types';
import './index.scss';
// 书页的最后一页
class EndItem extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
    }
  }
  render() {
    return (
      <div className="joke-item">
        <div className="page-end">
          心情放松了没？继续奋斗吧！！！
          <div className="page-munber">
            最后一页
          </div>
        </div>
        {
          this.props.activeIndex !== 0 ? <span className="prev controlIcon" onClick={this.props.handlePrev}>上一页</span> : ''
        }
      </div>
    )
  }
}
export default EndItem;
EndItem.propTypes = {
  handlePrev: PropTypes.func,
  activeIndex: PropTypes.number,
}
